//
//  Brand.m
//  CarHomeTest
//
//  Created by lanou3g on 15-4-23.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "Brand.h"

@implementation Brand

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (void)setBrandimg:(NSString *)brandimg {
    if (_brandimg != brandimg) {
        [_brandimg release];
        _brandimg = [brandimg retain];
    }
    NSArray *array1 = [brandimg componentsSeparatedByString:@"brands/"];
    NSArray *array2 = [array1[1] componentsSeparatedByString:@"."];
    self.ID = [NSString stringWithFormat:@"b%@", array2[0]];
}
@end
